package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author vallis
 * @since 2020-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EventOnMatch extends Model<EventOnMatch> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 赛事id
     */
    private Long matchid;
    @TableField(exist = false)
    private String matchName;
    @TableField(exist = false)
    private String eventName;
    /**
     * 项目id
     */
    private Long eventid;

    /**
     * 项目开始时间
     */
    private Timestamp eventStartTime;

    /**
     * 项目结束时间
     */
    private Timestamp eventEndTime;

    /**
     * 项目主裁判
     */
    private Long eventRefereeId;

    @TableField(exist = false)
    private String refereeName;

    /**
     * 项目的主规则
     */
    private Long eventRuleId;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
